package request

import "mime/multipart"

// 图片上传验证表单
type ImageUpload struct {
	// 业务类型
	Business string `form:"business" json:"business" binding:"required"`
	// 图片文件
	Image *multipart.FileHeader `form:"image" json:"image" binding:"required"`
}

func (img ImageUpload) GetMessages() ValidatorMessages {
	return ValidatorMessages{
		"business.required": "业务类型不能为空",
		"image.required":    "请选择图片",
	}
}
